import Login from '../views/login/login.vue'
import FrameLayout from '../layout/frame-layout.vue'

const routes = [
    {
        path: '/',
        component: FrameLayout,
        redirect: '/home',
        children: [
            {
                path: '/home',
                component: () => import('../views/home/home.vue'),
                meta: {
                    title: '系统首页',
                    icon: 'Odometer',
                },                
            },
        ],
    },
    {
        path: '/advertising',
        component: FrameLayout,
        children: [
            {
                path: '/advertising',
                component: () => import('../views/advertising/advertising.vue'),
                meta: {
                    title: '广告管理',
                    // icon: 'Odometer',
                },
            },
        ],
    },
    {
        path: '/perm',
        component: FrameLayout,
        children: [
            {
                path: 'permset',
                component: () => import('../views/management/permset.vue'),
                meta: {
                    title: '角色管理',
                    icon: 'Odometer',
                },
            },
            {
                path: 'root',
                component: () => import('../views/management/root.vue'),
                meta: {
                    title: '权限管理',
                    icon: 'Odometer',
                },
            }
        ],
    },
    {
        path: '/about',
        component: FrameLayout,
        children: [
            {
                path: '/team',
                component: () => import('../views/about-us/team.vue')
            },
            {
                path: '/career',
                component: () => import('../views/about-us/Career.vue')
            },
            {
                path: '/contact',
                component: () => import('../views/about-us/contact.vue')
            },
            {
                path: '/company',
                component: () => import('../views/about-us/company introduction.vue'),
                
            },
            {
                path:'/expert',
                component:()=>import('../views/about-us/newadd/newexpert.vue')
            },
            {
                path:'/change',
                component:()=>import('../views/about-us/newadd/newchange.vue')
            },
            {
                 path:'/compile',
                 component:()=>import('../views/about-us/company/compile.vue')
            }
        ]
    },
    {
        path: '/content',
        component: FrameLayout,
        redirect: "/content/idea",
        children: [
            {
                path: 'idea',
                component: () => import('../views/contents/idea.vue'),
                meta: {
                    title: '思想观点',
                    icon: 'Odometer',
                },
            },
            {
                path: 'practice',
                component: () => import('../views/contents/practice.vue'),
                meta: {
                    title: '案例实例',
                    icon: 'Odometer',
                },
            },
            {
                path: 'newidea',
                component: () => import('../views/contents/newIdea.vue'),
                meta: {
                    title: '新增思想管理',
                    icon: 'Odometer',
                },
            },
            {
                path: 'newpractice',
                component: () => import('../views/contents/newPractice.vue'),
                meta: {
                    title: '新增案例实例',
                    icon: 'Odometer',
                },
            },
        ],

    },
    {
        path: "/login",
        component: Login
    },
]

export default routes
